<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="3.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns="http://www.w3.org/1999/xhtml"
               xmlns:java="com.uni.crawl.common.util.crawl"
               exclude-result-prefixes="java">

    <xsl:template match="/">
        <root>
            <xsl:for-each select="//*[@class='page-layout']//li">
                <pagingList>
                    <pageNum>
                        <xsl:value-of select="text()"/>
                    </pageNum>
                    <pageUrl>
                        <xsl:value-of select="concat('{seedUrl}&p=', text())"/>
                    </pageUrl>
                </pagingList>
            </xsl:for-each>
        </root>
    </xsl:template>

</xsl:transform>
